
is_dump_file=0
if [ "$1" ];then
    is_dump_file=1
fi

echo is_dump_file=$is_dump_file

rm -fr build
mkdir build
cd build
if [ $is_dump_file != 1 ];then
    echo "not dump file"
    cmake -DCMAKE_BUILD_TYPE=Release -DUSE_BMCODEC=ON -DUSE_FFMPEG_STATIC=ON ..
else
    echo "dump file"
    cmake -DUSE_OUTPUT_FILE=ON -DUSE_BMCODEC=ON -DUSE_FFMPEG_STATIC=ON ..
fi

make -j4
cd ..

